﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;
using DataManager;

namespace HRMS.Models
{
    public class Applicants
    {
     public static void AddApplicant (Applicant applicant)
        {
            using(var appEntity = new HRMSEntities())
            {
                appEntity.Applicants.AddObject(applicant);
                appEntity.SaveChanges();
            }
        }
     public static List<Applicant> GetApplicants()
     {
         using (var appEntity = new HRMSEntities())
         {
             return appEntity.Applicants.ToList();
         }
     }

    }
}